import React from 'react'
// 4. 导入路由器和路由组件
import {Routes, Route} from 'react-router-dom'
import Index from './pages/Index'
import Login from './pages/Login'
import Users from './pages/Users'
export default function App() {
    return (
        <div>
            <h3>App</h3>
            {/* 5. 配置路由 path 路径 - element 路由组件 */}
            <Routes>
                <Route path='/enter' element={<Index/>}></Route>
                <Route path='/login' element={<Login/>}></Route>
                <Route path='/users' element={<Users/>}></Route>
            </Routes>
        </div>
    )
}
